/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.mallsite.modules.shop.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.mallsite.modules.shop.entity.GoodsAttr;
import com.mallsite.modules.shop.dao.GoodsAttrDao;

/**
 * 商品属性Service
 * @author ruyang
 * @version 2020-12-10
 */
@Service
@Transactional(readOnly=true)
public class GoodsAttrService extends CrudService<GoodsAttrDao, GoodsAttr> {
	
	/**
	 * 获取单条数据
	 * @param goodsAttr
	 * @return
	 */
	@Override
	public GoodsAttr get(GoodsAttr goodsAttr) {
		return super.get(goodsAttr);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param goodsAttr
	 * @return
	 */
	@Override
	public Page<GoodsAttr> findPage(Page<GoodsAttr> page, GoodsAttr goodsAttr) {
		return super.findPage(page, goodsAttr);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param goodsAttr
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(GoodsAttr goodsAttr) {
		super.save(goodsAttr);
	}
	
	/**
	 * 更新状态
	 * @param goodsAttr
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(GoodsAttr goodsAttr) {
		super.updateStatus(goodsAttr);
	}
	
	/**
	 * 删除数据
	 * @param goodsAttr
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(GoodsAttr goodsAttr) {
		super.delete(goodsAttr);
	}
	
}